using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void Button1_Click(object sender, EventArgs e)
    {

        TQB.Model.Users model = new TQB.Model.Users();
        model.Name = TextBox1.Text;
        model.Password = TextBox2.Text;

        TQB.BLL.Users bll = new TQB.BLL.Users();
        int id = bll.Add(model);
        if (id > 0)
            TQB.Common.MessageBox.Show(this, "You Are Right");

    }
}
